package com.sddm.printServer.service;

import com.sddm.printServer.entiy.CallBack;
import com.sddm.printServer.entiy.Print;
import org.springframework.stereotype.Service;

import javax.websocket.Session;
import java.awt.print.PrinterException;
import java.io.IOException;
import java.util.List;

/**
 * @author wyh
 * @version 1.0
 * @date 2022/4/7 13:46
 */
@Service
public interface SocketMessageAdapter {
    void onMessageProcess(List<Print> print, Session session) throws IOException, PrinterException;

    CallBack onOpenProcess(String username, Session session);
}
